package top.fangw.admin.pojo.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.time.LocalDateTime;
import top.fangw.common.core.entity.BaseEntity;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;
import top.fangw.common.core.entity.TenantBaseEntity;

/**
 * <p>
 * 用途：存储用户信息
 * </p>
 *
 * @author fangw
 * @since 2024-02-21
 */
@Getter
@Setter
@Accessors(chain = true)
@TableName("tbl_sys_user")
@Schema(name = "SysUser", description = "用途：存储用户信息")
public class SysUser extends TenantBaseEntity {

    private static final long serialVersionUID = 1L;

    @Schema(description = "登录名")
    @TableField("login_name")
    private String loginName;

    @Schema(description = "密码")
    @TableField("password")
    private String password;

    @Schema(description = "工号")
    @TableField("work_num")
    private String workNum;

    @Schema(description = "姓名首字母")
    @TableField("name_first_letter")
    private String nameFirstLetter;

    @Schema(description = "邮箱")
    @TableField("email")
    private String email;

    @Schema(description = "手机号")
    @TableField("phone")
    private String phone;

    @Schema(description = "电话号")
    @TableField("mobile")
    private String mobile;

    @Schema(description = "岗位id")
    @TableField("post_id")
    private String postId;

    @Schema(description = "头像")
    @TableField("photo")
    private String photo;

    @Schema(description = "登录ip")
    @TableField("login_ip")
    private String loginIp;

    @Schema(description = "登录日期")
    @TableField("login_date")
    private LocalDateTime loginDate;

    @Schema(description = "是否登录")
    @TableField("login_flag")
    private String loginFlag;

    @Schema(description = "是否设置了常用入口，0否1是")
    @TableField("init_common_fun")
    private String initCommonFun;

    @Schema(description = "是否可删除0：可删除  1：不可删除")
    @TableField("is_deletable")
    private String isDeletable;

}
